<ul [ngStyle]="{'background-color' : bgColor}">
  <li *ngFor="let item of menus;let i = index; let first = first">
    <a [ngStyle]="{color: selectedIndex === i ? titleActiveColor : titleColor}"
      (click)="hanldSelectedIndex(i)">{{ item.title }}
    </a>
    <span class="indicator" *ngIf="i===selectedIndex" [ngStyle]="{'background-color' : indicatorBgColor}">
    </span>
  </li>
</ul>
